<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Alert extends MY_Controller {

    public function __construct() {
        parent::__construct();
    }

    function index() {
        redirect(base_url());
    }
    
    function error(){
        $data["redir"] = $this->session->flashdata("redir");
        $data["message"] = $this->session->flashdata("message");
        $this->myview($data, "alert/error", TRUE);
    }
    
    function warning(){
        $data["redir"] = $this->session->flashdata("redir");
        $data["message"] = $this->session->flashdata("message");
        $this->myview($data, "alert/error", TRUE);
    }
    
    function success(){
        $data["redir"] = $this->session->flashdata("redir");
        $data["message"] = $this->session->flashdata("message");
        $this->myview($data, "alert/error", TRUE);
    }

}

?>
